package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 勘测报告的屋顶状况明细对象 erp_survey_report_roof_info
 * @author wutao
 * @date 2024-05-24
 */
@TableName ("erp_survey_report_roof_info")
@ApiModel (value = "erp_survey_report_roof_info对象", description = "勘测报告的屋顶状况明细")
@Data
public class SurveyReportRoofEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 勘测报告Id
     */
    @ApiModelProperty ("勘测报告Id")
    @TableField ("report_id")
    @Excel (name = "勘测报告Id")
    private String reportId;

    /**
     * 厂区
     */
    @ApiModelProperty ("厂区")
    @TableField ("factory_area")
    @Excel (name = "厂区")
    private String factoryArea;

    /**
     * 屋顶
     */
    @ApiModelProperty ("屋顶")
    @TableField ("roof")
    @Excel (name = "屋顶")
    private String roof;

    /**
     * 屋顶类型，下拉列表，走字典表
     */
    @ApiModelProperty ("屋顶类型，下拉列表，走字典表")
    @TableField ("roof_type")
    @Excel (name = "屋顶类型，下拉列表，走字典表")
    private Integer roofType;

    /**
     * 产权
     */
    @ApiModelProperty ("产权")
    @TableField ("property_right")
    @Excel (name = "产权")
    private String propertyRight;

    /**
     * 面积
     */
    @ApiModelProperty ("面积")
    @TableField ("area")
    @Excel (name = "面积")
    private String area;

    /**
     * 组件功率
     */
    @ApiModelProperty ("组件功率")
    @TableField ("component_power")
    @Excel (name = "组件功率")
    private String componentPower;

    /**
     * 组件数量
     */
    @ApiModelProperty ("组件数量")
    @TableField ("component_number")
    @Excel (name = "组件数量")
    private Integer componentNumber;

    /**
     * 屋顶装机容量
     */
    @ApiModelProperty ("屋顶装机容量")
    @TableField ("roof_capacity")
    @Excel (name = "屋顶装机容量")
    private String roofCapacity;

    /**
     * 荷载
     */
    @ApiModelProperty ("荷载")
    @TableField ("load_life")
    @Excel (name = "荷载")
    private String loadLife;

    /**
     * 备注
     */
    @ApiModelProperty ("备注")
    @TableField ("remarks")
    @Excel (name = "备注")
    private String remarks;

    /**
     * 是否在用
     */
    @ApiModelProperty ("是否在用")
    @TableField ("is_used")
    @Excel (name = "是否在用")
    private Integer isUsed;


    @Override
    public String toString () {
        return new ToStringBuilder ( this, ToStringStyle.MULTI_LINE_STYLE )
                .append ( "id", getId () )
                .append ( "reportId", getReportId () )
                .append ( "factoryArea", getFactoryArea () )
                .append ( "roof", getRoof () )
                .append ( "roofType", getRoofType () )
                .append ( "propertyRight", getPropertyRight () )
                .append ( "area", getArea () )
                .append ( "componentPower", getComponentPower () )
                .append ( "componentNumber", getComponentNumber () )
                .append ( "roofCapacity", getRoofCapacity () )
                .append ( "loadLife", getLoadLife () )
                .append ( "remarks", getRemarks () )
                .append ( "createTime", getCreateTime () )
                .append ( "updateTime", getUpdateTime () )
                .append ( "isUsed", getIsUsed () )
                .toString ();
    }
}
